package com.lovo.csc.controller;


import com.lovo.csc.entity.Offerinfo;
import com.lovo.csc.service.IOfferinfoService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author lovo
 * @since 2022-07-07
 */
@RestController
@RequestMapping("/offerinfo")
public class OfferinfoController {
    @Autowired
    IOfferinfoService offerinfoService;

    @GetMapping("findAll")
    @ApiOperation("查询出报价表的数据")
    public List<Offerinfo> findAll(){
        return offerinfoService.list();
    }
}
